Skip to content

chore: Add envvars to override writer configs and cometConf minor clean up#3540

Merged
andygrove merged 9 commits into
apache:mainfrom
comphead:writer
Feb 18, 2026
Merged

chore: Add envvars to override writer configs and cometConf minor clean up#3540
andygrove merged 9 commits into
apache:mainfrom
comphead:writer

Conversation

@comphead
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

  • Remove some unused confs
  • Rename regexp to be in sync with other incompats
  • Add env variable for writer

What changes are included in this PR?

How are these changes tested?

.stringConf
.createOptional

val COMET_MAX_TEMP_DIRECTORY_SIZE: ConfigEntry[Long] =
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these configs are used directly from native code. We add them here so that they get documented.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in spark_config.rs:

pub(crate) const COMET_TRACING_ENABLED: &str = "spark.comet.tracing.enabled";
pub(crate) const COMET_DEBUG_ENABLED: &str = "spark.comet.debug.enabled";
pub(crate) const COMET_EXPLAIN_NATIVE_ENABLED: &str = "spark.comet.explain.native.enabled";
pub(crate) const COMET_MAX_TEMP_DIRECTORY_SIZE: &str = "spark.comet.maxTempDirectorySize";
pub(crate) const COMET_DEBUG_MEMORY: &str = "spark.comet.debug.memory";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ic, I'll add comments!

@comphead comphead changed the title chore: CometConf minor clean up chore: Add envvars to override writer configs and cometConf minor clean up Feb 17, 2026
Comment on lines -798 to -804
val COMET_REGEXP_ALLOW_INCOMPATIBLE: ConfigEntry[Boolean] =
conf("spark.comet.regexp.allowIncompatible")
.category(CATEGORY_EXEC)
.doc("Comet is not currently fully compatible with Spark for all regular expressions. " +
s"Set this config to true to allow them anyway. $COMPAT_GUIDE.")
.booleanConf
.createWithDefault(false)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the config here will remove it from the configuration guide, but maybe that is fine, so long as we are explaining it in the compatibility guide.

Copy link
Copy Markdown
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @comphead

@andygrove andygrove merged commit 5c1f131 into apache:main Feb 18, 2026
110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants